%h3{:style => "padding: 10px;"} Currently in the gallery:
- @gallery.photos.each do |photo|
  %table.photo.tiny.clickable{:class => ('partnered' if @gallery.photos.include?(photo))}
    %tr
      %td.photo
        %input.item_id{:type => 'hidden', :value => photo.id}
        %a{:href => photo_url(photo), :title => (photo.caption ? photo.caption : photo.filename), :alt => (photo.caption ? photo.caption : photo.filename)}
          %img.photo_thumb{:src => photo.public_filename(:tiny), :title => (photo.caption ? photo.caption : photo.filename), :alt => (photo.caption ? photo.caption : photo.filename)}
%hr{:style => "clear: both; width: 800px; padding-top: 25px; margin-bottom: 25px; border: none;"}
%h3{:style => "padding: 10px;"} Add more photos:
- @photos.each do |photo|
  %table.photo.clickable{:class => ('partnered' if @gallery.photos.include?(photo))}
    %tr
      %td.photo
        %input.item_id{:type => 'hidden', :value => photo.id}
        %a{:href => photo_url(photo), :title => (photo.caption ? photo.caption : photo.filename), :alt => (photo.caption ? photo.caption : photo.filename)}
          %img.photo_thumb{:src => photo.public_filename(:thumb), :title => (photo.caption ? photo.caption : photo.filename), :alt => (photo.caption ? photo.caption : photo.filename)}
= will_paginate @photos, :class => "flickr_pagination pagination", :params => {:controller => 'photos', :id => nil, :action => nil}
%div.page_info
  = page_entries_info @photos